package com.lry.sso.client.feign;

import com.lry.sso.auth.common.util.SessionInfo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author 李瑞益
 * @date 2020-02-13 12:37
 */
@FeignClient(name="AUTH-SERVER")
public interface AuthFeign {

    /**
     * 解析验证token
     * @param token 带解析的token
     */
    @PostMapping("/sso/auth/v1/token/verify")
    SessionInfo parseToken(@RequestParam("token") String token);
}
